<?php

namespace App\Repositories;

use App\Models\IntegralLog;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class IntegralLogRepository
 * @package App\Repositories
 * @version September 19, 2017, 7:14 am UTC
 *
 * @method IntegralLog findWithoutFail($id, $columns = ['*'])
 * @method IntegralLog find($id, $columns = ['*'])
 * @method IntegralLog first($columns = ['*'])
*/
class IntegralLogRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'user_id',
        'type',
        'add_type',
        'junior_id',
        'title',
        'amount',
        'calculate'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return IntegralLog::class;
    }
}
